package presentation.view_helpers;

import java.util.List;

import business.BusinessObjectAssembler;
import business.CommonLogic;
import business.exception.BusinessException;

import persistence.LibraryLocation;

public class CommonBean {
	
	private CommonLogic commonLogic;
	
	public CommonBean() {
		commonLogic = BusinessObjectAssembler.getCommonLogic();
	}
	
	public List<LibraryLocation> getLibraryLocations() {
		List<LibraryLocation> locations = null;
		try {
			locations = commonLogic.getAllLibraryLocations();
		}
		catch (BusinessException be) {
			//TODO: create Faces Message
		}
		return locations;
	}
}